package com.stylefeng.guns.modular.revenue.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author stylefeng123
 * @since 2018-06-30
 */
@TableName("revenue")
public class Revenue extends Model<Revenue> {

    private static final long serialVersionUID = 1L;


    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * AG盈亏
     */
    @TableField("AG_profit")
    private Double agProfit;
    /**
     * BBin盈亏
     */
    @TableField("BBin_profit")
    private Double bbinProfit;
    /**
     * PT盈亏
     */
    @TableField("PT_profit")
    private Double ptProfit;
    /**
     * Mg
     */
    @TableField("MG_profit")
    private Double mgProfit;
    /**
     * DS
     */
    @TableField("DS_profit")
    private Double dsProfit;
    /**
     * VR
     */
    @TableField("VR_profit")
    private Double vrProfit;
    /**
     * KG
     */
    @TableField("KG_profit")
    private Double kgProfit;
    /**
     * SB
     */
    @TableField("SB_profit")
    private Double sbProfit;
    /**
     * GP
     */
    @TableField("GP_profit")
    private Double gpProfit;
    /**
     * 彩票
     */
    @TableField("lotter_profit")
    private Double lotterProfit;

    /**
     * 活动赠送
     */
    @TableField("hdzs_profit")
    private Double hdzsProfit;
    /**
     * 返点
     */
    @TableField("rebate_profit")
    private Double rebateProfit;
    @TableField("creattime")
    private Date creattime;
    @TableField("updatetime")
    private Date updatetime;

    @TableField("revtime")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date revtime;
    /**
     * 平台编码
     */
    @TableField("platform")
    private String platform;


    public Double getAgProfit() {
        return agProfit;
    }

    public void setAgProfit(Double agProfit) {
        this.agProfit = agProfit;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }



    public Double getBbinProfit() {
        return bbinProfit;
    }

    public void setBbinProfit(Double bbinProfit) {
        this.bbinProfit = bbinProfit;
    }

    public Double getPtProfit() {
        return ptProfit;
    }

    public void setPtProfit(Double ptProfit) {
        this.ptProfit = ptProfit;
    }

    public Double getMgProfit() {
        return mgProfit;
    }

    public void setMgProfit(Double mgProfit) {
        this.mgProfit = mgProfit;
    }

    public Double getDsProfit() {
        return dsProfit;
    }

    public void setDsProfit(Double dsProfit) {
        this.dsProfit = dsProfit;
    }

    public Double getVrProfit() {
        return vrProfit;
    }

    public void setVrProfit(Double vrProfit) {
        this.vrProfit = vrProfit;
    }

    public Double getKgProfit() {
        return kgProfit;
    }

    public void setKgProfit(Double kgProfit) {
        this.kgProfit = kgProfit;
    }

    public Double getSbProfit() {
        return sbProfit;
    }

    public void setSbProfit(Double sbProfit) {
        this.sbProfit = sbProfit;
    }

    public Double getGpProfit() {
        return gpProfit;
    }

    public void setGpProfit(Double gpProfit) {
        this.gpProfit = gpProfit;
    }

    public Double getLotterProfit() {
        return lotterProfit;
    }

    public void setLotterProfit(Double lotterProfit) {
        this.lotterProfit = lotterProfit;
    }

    public Double getRebateProfit() {
        return rebateProfit;
    }

    public void setRebateProfit(Double rebateProfit) {
        this.rebateProfit = rebateProfit;
    }

    public Date getCreattime() {
        return creattime;
    }

    public void setCreattime(Date creattime) {
        this.creattime = creattime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    public Date getRevtime() {
        return revtime;
    }

    public void setRevtime(Date revtime) {
        this.revtime = revtime;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getPlatform() {
        return platform;
    }

    public void setPlatform(String platform) {
        this.platform = platform;
    }

    public Double getHdzsProfit() {
        return hdzsProfit;
    }

    public void setHdzsProfit(Double hdzsProfit) {
        this.hdzsProfit = hdzsProfit;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "Revenue{" +
                "id=" + id +
                ", platform=" + platform +
                ", agProfit=" + agProfit +
                ", bbinProfit=" + bbinProfit +
                ", ptProfit=" + ptProfit +
                ", mgProfit=" + mgProfit +
                ", dsProfit=" + dsProfit +
                ", vrProfit=" + vrProfit +
                ", kgProfit=" + kgProfit +
                ", sbProfit=" + sbProfit +
                ", gpProfit=" + gpProfit +
                ", lotterProfit=" + lotterProfit +
                ", rebateProfit=" + rebateProfit +
                ", creattime=" + creattime +
                ", revtime=" + revtime +
                ", updatetime=" + updatetime +
                "}";
    }

}
